package pfc.pfcjoc.entities;

// import static playn.core.PlayN.log;

import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.World;

import pfc.pfcjoc.core.pfcjoc;
import playn.core.GroupLayer;

public class Background extends Element {
  public static String name = "bg";


  // private float scrollXFactor = 1.2f;

  public Background(final World world, final GroupLayer worldLayer, final Vec2 pos) {
    super(world, worldLayer, pos);
    setDepth(-200);
    setPosPhy(pfcjoc.toPhy(pos));
  }


  public void paint(float alpha) {
    super.paint(alpha);
    // sprite.setSprite(spriteIndex);
  }


  public String getName() {
    return name;
  }


  @Override
  public float getWidth() {
    return 400;
  }


  @Override
  public float getHeight() {
    return 300;
  }


  @Override
  protected int getFirstSprite() {
    return 0;
  }


  @Override
  protected String getImagePath() {
    return "images/bg.png";
  }


  @Override
  protected String getJsonPath() {
    return "images/bg.json";
  }
}
